package com.itheima.advance.en.demo01;

// 定义一个枚举
public enum Season {

    SPRING("春"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    } , SUMMER("夏"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    } , AUTUMN("秋"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    } , WINTER("冬") {
        @Override
        public void show() {
            System.out.println(this.name);
        }
    };

    // 定义一个name成员变量
    public String name ;

    private Season(String name){
        this.name = name ;
    }

    // 抽象的show方法
    public abstract void show();

}
